package com.qf.mapper;

import com.qf.pojo.SysUsers;

import java.util.List;

/**
 * @author Wy
 * @version V1.0
 * @Project MavenDemo
 * @Package com.qf.mapper
 * @Description:
 * @Date 2022/6/14 20:19
 */
public interface UserMapper {
    /**
     * 根据id查询
     * @return
     */
    public SysUsers findUserByName(String username);

    /**
     * 根据用户id查询该用户的角色集合
     * @return
     */
    public List<String> findRolesByUid(int id);

    /**
     * 根据id查看用户权限合集
     * @return
     */
    public List<String> findPermByUid(int id);


    public List<SysUsers> findUserall();

}
